Skip to content

Make gases flow up.#5021

Open
screret wants to merge 48 commits into
GregTechCEu:1.21from
screret:sc/inverted-fluid-rendering
Open

Make gases flow up.#5021
screret wants to merge 48 commits into
GregTechCEu:1.21from
screret:sc/inverted-fluid-rendering

Conversation

@screret

@screret screret commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What

As the title says. Fluids with negative (or zero, forge says so) density flow up.

Well, technically, gases evaporate instantly so you won't get to see them flow up. Neutronium doesn't, though, so that's currently the one and only example of a fluid flowing up.

There are configs for disabling gas evaporation, upside-down fluid flow and upside-down fluid rendering respectively. Disabling rendering without disabling the gameplay mechanics will likely result in VERY weird-looking fluids, tough, so users beware: that is intentional, you shouldn't disable only the client config unless you're having issues whilst playing on a server and you can mind the oddities that'll ensue.

Implementation Details

Mixins into Vanilla's, Sodium's and Embeddium's fluid renderers to make them handle rendering the fluid upside down and overriding literally every flow handling method from FlowingFluid.

AI Usage

  • No AI driven tools were used for this pull request.
  • Yes, AI driven tools were used for this pull request.

Outcome

Haha look the neutronium flows up now

How Was This Tested

Vanilla:
Vanilla Renderer
Sodium:
Sodium Renderer
Embeddium:
Embeddium Renderer
(They all look the same, but from different angles and/or distances)

Additional Information

All GT fluids now have blocks by default, as I felt there was no reason to gatekeep that anymore.

Potential Compatibility Issues

Mods that don't expect fluids to flow up (all of them, really) may have issues with this. If you find one, disable gameplay.lowDensityFluidsFlowUp in the config.

@screret screret requested a review from a team as a code owner June 29, 2026 21:27
@github-actions github-actions Bot added the 1.21 label Jun 29, 2026
@screret screret marked this pull request as draft June 30, 2026 07:07
@screret screret marked this pull request as ready for review July 12, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant